import React from "react";
import { RouteObject } from "@/routes/interface";
import Layout from "@/layouts";
import lazyLoad from "@/routes/utils/lazyLoad";

const platform: Array<RouteObject> = [
	{
		element: <Layout />,
		meta: {
			title: "月台管理",
			key: "platform"
		},
		children: [
			{
				path: "/platform/dock",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/Dock/index"))),
				meta: {
					title: "月台管理",
					requiresAuth: true,
					key: "/platform/dock",
					icon: ""
				}
			},
			{
				path: "/platform/dock/detail",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/DockDetail/index"))),
				meta: {
					title: "月台管理详情",
					requiresAuth: true,
					key: "/platform/dock/detail",
					icon: ""
				}
			},
			{
				path: "/platform/dock/add",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/AddDock/index"))),
				meta: {
					title: "新增月台",
					requiresAuth: true,
					key: "/platform/dock/add",
					icon: ""
				}
			},
			{
				path: "/platform/joint",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/Joint/index"))),
				meta: {
					title: "接驳点管理",
					requiresAuth: true,
					key: "/platform/joint",
					icon: ""
				}
			},
			{
				path: "/platform/joint/detail",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/JointDetail/index"))),
				meta: {
					title: "接驳点详情",
					requiresAuth: true,
					key: "/platform/joint/detail",
					icon: ""
				}
			},
			{
				path: "/platform/joint/add",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/AddJoint/index"))),
				meta: {
					title: "新增接驳点",
					requiresAuth: true,
					key: "/platform/joint/add",
					icon: ""
				}
			},

			{
				path: "/platform/route",
				element: lazyLoad(React.lazy(() => import("@/pages/platform/Route/index"))),
				meta: {
					title: "路线管理",
					requiresAuth: true,
					key: "/platform/route",
					icon: ""
				}
			},
		]
	}
];

export default platform;
